package com.heima.xxljob.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class HelloJob {
    @XxlJob("demo")
    public void helloJob() {
        System.out.println("任务执行了.........");
    }
}